package demo;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;



@ManagedBean(name = "LocationBean")
@SessionScoped
public class LocationBean {
	
	private String idioma;
	
	public LocationBean(){
		idioma="es";
	}

	public void cambiarIdioma(){
		if(idioma.equals("es")==true){
			idioma="es";
		}else{
			idioma="en";
		}
	}
	public String getIdioma() {
		
		return idioma;
	}

	public void setIdioma(String idioma) {
		this.idioma = idioma;
	}
	
	

}